package yifeng.performance;


import java.util.ArrayList;
import java.util.List;

public class BigArray2 {
	public static int[] a = new int[100000000];//100M length
											   //数组创建在heap里,a是一个在permgen里的引用
//	public int[] a = new int[1000000];//1M length
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		while(true){
			BigArray ba = new BigArray();
			System.out.println("1");
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
